﻿using System.Web;
using System.Web.Optimization;

namespace CubicFWNet.Mvc
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-2.2.3.min.js"));

            bundles.Add(new ScriptBundle("~/Scripts/cookieJs").Include(
                   "~/Scripts/cookie/jquery.cookie.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                  "~/Scripts/jQueryUI/jquery-ui.min.js"));

            // Inspinia script
            bundles.Add(new ScriptBundle("~/bundles/cubic").Include(
                      "~/Scripts/slimScroll/jquery.slimscroll.min.js",
                      "~/Scripts/fastclick/fastclick.js",
                      "~/Scripts/app.min.js",
                      "~/Scripts/demo.js",
                      "~/Scripts/bootstrap/bootstrap.min.js"));
            //bootstrap
            bundles.Add(new ScriptBundle("~/Scripts/bootstrapjs").Include(
                   "~/Scripts/bootstrap/bootstrap.min.js"));
            //framework-ui
            bundles.Add(new ScriptBundle("~/bundles/frameworkui").Include(
                    "~/Scripts/framework-ui.js"));

            bundles.Add(new ScriptBundle("~/Scripts/jqueryvalidate").Include(
                        "~/Scripts/validate/jquery.validate.min.js",
                        "~/Scripts/validate/jquery.validate.unobtrusive.min.js",
                        "~/Scripts/validate/messages_zh.js"
                        ));
            //页面通用css
            bundles.Add(new StyleBundle("~/Content/css").Include(
                       "~/Content/bootstrap.min.css",
                       "~/Content/font-awesome/font-awesome.min.css",
                       "~/Content/ionicons/ionicons.min.css",
                       "~/Content/AdminLTE.min.css",
                       "~/Content/skins/_all-skins.min.css",
                       "~/Content/pagerstyles.css"));
            //footable
            bundles.Add(new ScriptBundle("~/Scripts/footableJs").Include(
                               "~/Scripts/footable/footable.all.min.js"));
            bundles.Add(new StyleBundle("~/Content/footableStyles").Include(
                               "~/Content/footable/footable.core.css"));

            //iCheck
            bundles.Add(new ScriptBundle("~/Scripts/iCheckJs").Include(
                          "~/Scripts/iCheck/icheck.min.js"));
            bundles.Add(new StyleBundle("~/Content/iCheck/iCheckStyles").Include(
                          "~/Content/iCheck/all.css"));
            //wdtree
            bundles.Add(new ScriptBundle("~/Scripts/wdtreeJs").Include(
                                 "~/Scripts/wdtree/tree.js"));
            bundles.Add(new StyleBundle("~/Content/wdtreeStyles").Include(
                               "~/Content/wdtree/tree.css"));

            //ztree
            bundles.Add(new ScriptBundle("~/Scripts/ztreeJs").Include(
                       "~/Scripts/zTree/jquery.ztree.all.js"));
            bundles.Add(new StyleBundle("~/Content/ztreeStyles").Include(
                               "~/Content/metroStyle/metroStyle.css"));
            //layer
            bundles.Add(new ScriptBundle("~/Scripts/layer/layerJs").Include(
                    "~/Scripts/layer/layer.js"));

            //html5Validate
            bundles.Add(new ScriptBundle("~/bundles/html5Validate").Include(
                            "~/Scripts/html5Validate.js"));
            //Ajax Form
            bundles.Add(new ScriptBundle("~/Scripts/ajaxunobtrusive").Include(
                         "~/Scripts/jquery.unobtrusive-ajax.min.js"));
            //md5
            bundles.Add(new ScriptBundle("~/Scripts/md5Js").Include(
                "~/Scripts/md5/jquery.md5.js"));


            // Select2 Styless
            bundles.Add(new StyleBundle("~/Content/select2Styles").Include(
                      "~/Content/select2/select2.min.css"));
            // Select2
            bundles.Add(new ScriptBundle("~/Scripts/select2Js").Include(
                      "~/Scripts/select2/select2.full.min.js"));

            

            // 将 EnableOptimizations 设为 false 以进行调试。有关详细信息，
            // 请访问 http://go.microsoft.com/fwlink/?LinkId=301862
            BundleTable.EnableOptimizations = true;
        }
    }
}
